package ltd.hxya.novel.book.feign;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ltd.hxya.novel.book.entity.Book;
import ltd.hxya.novel.common.bean.Result;
import ltd.hxya.novel.common.to.book.BookTo;
import ltd.hxya.novel.common.vo.SearchParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;
import java.util.List;

@FeignClient("novel-search")
public interface SearchFeignService {

    @PostMapping("/search/searchBook")
    public Result<Page<Book>> searchBook(@RequestBody SearchParam searchParam) throws IOException ;
}
